﻿#include"RBTree.h"
#include"Set.h"
#include"Map.h"
#include"Iterator.h"
#include<string>
int main()
{
	/*tzc::set<int, int> s;
	int arr[] = { 1,2,3,4,5,6,9,8,7,0 };
	for (auto& x : arr)
	{
		s.insert(x);
	}
	auto sit = s.rbegin();
	while (sit != s.rend())
	{
		
		cout<<*sit<<endl;
		++sit;
	}*/

	//string t;
	//tzc::map<string, int> countstring;
	//while (cin >> t)
	//{
	//	countstring[t]++;
	//	for (auto& x : countstring)
	//	{
	//		cout << x.first << ":" << x.second << "个" << endl;
	//	}
	//}

	

	tzc::map<string, string> dict;
	dict["sort"];
	dict["left"] = "离开";

	for (auto& e : dict)
	{
		cout << e.first << ":" << e.second << endl;
	}
	dict["left"] = "剩余";
	dict["sort"] = "排序";

	for (auto& e : dict)
	{
		cout << e.first << ":" << e.second << endl;
	}
	return 0;
}